package com.enki.cigarettes.enums;

/**
 * @author WCS.Wang
 * @version V1.0
 * @Package com.enki.cigarettes.enums
 * @Name aec-middle-admin-api-module
 * @Description: TODO 福利金状态
 * @date 2019/1/11
 */
public class WelfarePaymentsEnums {

    /**
     * 福利金审核状态
     */
    public enum WelfareStatus {

        REVIEW("审核中", 0), REVIEW_SUCCESS("审核成功", 1), REVIEW_FAIL("审核失败", 2),;

        private String name;

        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        WelfareStatus(String name, int status) {
            this.name = name;
            this.status = status;
        }
    }

    /**
     * 发放状态
     */
    public enum IssueStatus {
        ISSUE("待发放", 0), ISSUE_SUCCESS("发放成功", 1), ISSUE_FAIL("发放失败", 2);

        private String name;

        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        IssueStatus(String name, int status) {
            this.name = name;
            this.status = status;
        }
    }

    /**
     * 福利金领取状态
     */
    public enum ReceiveStatus {

        UN_RECEIVE("待领取", 0), RECEIVE("已领取", 1);

        private String name;

        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        ReceiveStatus(String name, int status) {
            this.name = name;
            this.status = status;
        }
    }

    /**
     * 使用状态
     */
    public enum WelfareUseStatus {
        USE("未使用", 0), USED("已使用", 1), OVERDUE("已过期", 1);

        private String name;

        private int status;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        WelfareUseStatus(String name, int status) {
            this.name = name;
            this.status = status;
        }

        public static String getName(int status) {
            for (WelfareUseStatus ws : WelfareUseStatus.values()) {
                if (ws.getStatus() == status) {
                    return ws.getName();
                }
            }
            return "";
        }
    }

}
